// let x: string | number
let x = Math.random() < 0.5 ? 10 : "hello world";
// let x: number
x = 1
// let x: string
x = 'goodbye'
